home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 100 / CD-ROM 100.iso / aplic / oo1_1 / f_0328 / scalc.jar / text / scalc / guide / database_group.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-30  |  4.9 KB  |  55 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Grouping Database Ranges and Calculating Subtotals</title><meta name="filename" content="text/scalc/guide/database_group"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:18cm;}
  8.         td.Tabelle1A1{
  9.                 }
  10.         table.Tabelle2{
  11.                 }
  12.         span.Tabelle2A{
  13.                 width:18cm;}
  14.         td.Tabelle2A1{
  15.                 }
  16.         p.P1{
  17.                 }
  18.         p.P2{
  19.                 }
  20.         span.T1{
  21.                 font-weight:bold;}
  22.         span.fr1{
  23.                 }
  24.         </style></head><body>
  25.   
  26.   
  27.   <p class="P1"/>
  28.   <p class="Head1"><help:paragraphinfo state="U" number="58" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="database ranges; grouping" tag="kw68204_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="grouping; database ranges" tag="kw68204_4" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="subtotals; database ranges" tag="kw68204_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="database ranges; subtotals" tag="kw68204_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="database_group" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68204">Grouping Database Ranges and Calculating Subtotals</help:link></help:to-be-embedded></p>
  29.   <p class="Paragraph"><help:paragraphinfo state="U" number="59" xmlns:help="http://openoffice.org/2000/help"/>If you want to expand the sample data and in order to use it, you will also want to summarize and print the data in totals and subtotals. This can be done in just a few steps:</p>
  30.   <ol class="L1">
  31.    <li class="">
  32.     <p class="P2"><help:paragraphinfo state="U" number="60" xmlns:help="http://openoffice.org/2000/help"/>Place the cursor in the database range.</p>
  33.    </li>
  34.    <li class="">
  35.     <p class="P2"><help:paragraphinfo state="U" number="61" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Data - Subtotals</span>. The <span class="T1">Subtotals</span> dialog appears.</p>
  36.    </li>
  37.    <li class="">
  38.     <p class="P2"><help:paragraphinfo state="U" number="62" xmlns:help="http://openoffice.org/2000/help"/>Specify the options for calculating the subtotals. For example, group by "Date" (a subtotal is calculated for each new date), and calculate subtotals for "Amount" using the function "Sum" (adds the subtotals).</p>
  39.    </li>
  40.   </ol>
  41.   <table><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  42.       <p class="TableHead"><draw:image draw:name="Dialog0" svg:desc="Subtotals options" svg:pixelx="484" svg:pixely="384" svg:width="12.801cm" svg:height="10.156cm" xlink:href="67237" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  43.  
  44.      </span></th></tr></table>
  45.   <p class="Paragraph"><help:paragraphinfo state="U" number="63" xmlns:help="http://openoffice.org/2000/help"/>As soon as you press Enter or click OK, the database range will be grouped with subtotals. For every group of rows with an identical date, a subtotal is calculated. The grand total is displayed at the bottom.</p>
  46.   <table><tr class=""><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  47.       <p class="TableHead"><draw:image draw:name="Info1" svg:desc="Show Subtotals" svg:pixelx="482" svg:pixely="316" svg:width="12.753cm" svg:height="8.361cm" xlink:href="67236" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  48.  
  49.      </span></th></tr></table>
  50.   <p class="Paragraph"><help:paragraphinfo state="U" number="65" xmlns:help="http://openoffice.org/2000/help"/>Notice the controls to the left of the row headers. They enable you to view which records (rows) have been summarized. If you click on a minus sign, only the row with the results is shown. The easiest way to control the display is with the small digits above the group area. If you click on 1, only the grand total is displayed; 2 reveals the subtotals, and 3 shows all elements.</p>
  51.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  52.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68201" Eid="database_define" xmlns:help="http://openoffice.org/2000/help"/></p>
  53.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68202" Eid="database_sort" xmlns:help="http://openoffice.org/2000/help"/></p>
  54.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68203" Eid="database_filter" xmlns:help="http://openoffice.org/2000/help"/></p>
  55.  </body></html>